FROM java:8
EXPOSE 9999

VOLUME /tmp
ADD target/*.jar  /demo.jar
RUN bash -c 'touch /demo.jar'
ENTRYPOINT ["java","-jar","-Xms128m","-Xmx300m","/demo.jar"]